/*
 * @Author: PC9527\Jack sophia2152@qq.com
 * @Date: 2023-08-07 15:55:28
 * @LastEditors: PC9527\Jack sophia2152@qq.com
 * @LastEditTime: 2023-08-08 09:15:24
 * @Description:
 */
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';

export type MenusListParams = BasicPageParams & {
  keyword?: string;
  is_show?: number;
};

export type MenusParams = {
  id?: number;
  pid?: number;
  menu_name: string;
  menu_path?: string;
  unique_auth?: string;
  icon?: string;
  methods?: string;
  api_url?: string;
  sort?: number;
  auth_type: number;
  is_show?: number;
  is_show_path?: number;
};

export interface MenusListItem {
  id: number;
  menu_name: string;
  icon: string;
  api_url?: string;
  unique_auth?: string;
  menu_path?: string;
  sort?: number;
  auth_type: number;
  is_show?: number;
  children?: MenusListItem[];
}

export interface MenusList {
  id: number;
  title: string;
  children?: MenusList[];
}

export type MenuListGetResultModel = BasicFetchResult<MenusListItem>;
